<!--
 * @Author: zshawk1982
 * @Date: 2021-09-18 10:36:11
 * @LastEditTime: 2022-10-18 12:05:40
 * @LastEditors: zshawk1982
 * @Description: 
 * @FilePath: \media_web_client\src\views\Home.vue
-->
<template>
  <div class="about">
    <v-header />
    <v-sidebar />
    <div class="content-box" :class="{ 'content-collapse': collapse }">
      <v-tags></v-tags>
      <div class="content">
        <!-- 路由过渡动效 -->
        <router-view v-slot="{ Component }">
          <transition name="move" mode="out-in">
            <keep-alive :include="tagsList">
              <component :is="Component" />
            </keep-alive>
          </transition>
        </router-view>
      </div>
    </div>
  </div>
</template>
<script>
import vHeader from "../components/Header.vue";
import vSidebar from "../components/SideBar.vue";
import vTags from "../components/Tags.vue";
import { computed } from "vue";
import { useStore } from "vuex";
export default {
  components: {
    vHeader,
    vSidebar,
    vTags,
  },
  setup() {
    const store = useStore();
    const tagsList = [];
    const collapse = computed(() => store.state.collapse);
    return {
      tagsList,
      collapse,
    };
  },
};
</script>
<style lang="scss" scoped></style>
